/**
 * author:Administrator
 * date:2016/2/24
 * desc:TODO
 */

'use strict';

let RepoImpl = require('../../../infrastructure/persist').LocationRepoImpl;


class LocationRepo {
  constructor(Location) {
    this.Location = Location;
  }

  static * find(id) {
    return yield RepoImpl.find(id);
  }

  /**
   * @param location
   * @param t transaction
   */
  static * store(location, t) {
    yield RepoImpl.store(location, t);
  }

}

module.exports = LocationRepo;
